package com.ziyun.erp.common.e.material;

import com.ziyun.erp.common.e.BaseEnum;

/**
 * 原料耗材单位枚举类
 *  0.个;1.平方米m;2.重量g;3长度m;4.张
 * @author 桂朝
 * @date 2018/8/9 19:10
 */
public enum MaterialUnitEnum implements BaseEnum {
    NUMBER(0, "个"),
    SQUARE(1, "m²"),
    WEIGHT(2, "g"),
    LENGTH(3, "m"),
    PIECES(4, "张"),
    CHUNK(5, "块"),
    ROLL(6, "卷"),
    BOTH(7, "双"),
    BOX(8, "盒"),
    BAG(9, "袋"),
    VASE(10, "瓶"),
    POT(11, "壶"),
    ROOT(12, "根"),
    BASIS(13,"本"),
    CASE(14,"箱"),
    TIME(15,"次"),
    RICE(16,"米"),
    BUNDLE(17,"把"),
    COVER(18,"套"),
    CATTY(19,"斤"),
    PLATFORM(20,"台"),
    BRANCH(21,"支"),
    PACKAGE(22,"包"),
    KILOGRAM(23,"公斤");
    private int id;
    private String describe;

    MaterialUnitEnum(int id, String describe) {
        this.id = id;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
